#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author   : Moty
# @Time     : 2024/1/22 0:11
# @File     : kc16_12.py
# @Project  : jt808


def parse_12_Read_Realtime_Monitoring_Data(body):
    # 解析0x8103终端参数设置
    data = {
        "桩编号": body[0:14],
        "枪号": f"{int(body[14:16], 16)}枪({body[14:16]})",
    }
    formatted_data = ""
    for key, value in data.items():
        formatted_data += f"{key}: {value}\n"
    return formatted_data


__all__ = ['parse_12_Read_Realtime_Monitoring_Data']
